package com.adv.vo;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class LoginForm {

	@Length(max = 50, message = "最多可以输入50个字符")
	@NotBlank(message = "账户不能为空")
	private String username;

	@Length(max = 50, message = "最多可以输入50个字符")
	@NotBlank(message = "密码不能为空")
	private String password;

	private String remember;

	@Length(max = 4, message = "最多可以输入4个字符")
	@NotBlank(message = "验证码不能为空")
	private String kaptcha;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRemember() {
		return remember;
	}

	public void setRemember(String remember) {
		this.remember = remember;
	}

	public String getKaptcha() {
		return kaptcha;
	}

	public void setKaptcha(String kaptcha) {
		this.kaptcha = kaptcha;
	}

}
